<?php /* Smarty version 2.6.18, created on 2009-10-20 16:33:01
         compiled from news_cat.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "news_header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</header>
<body class="oneColLiqCtrHdr">
<div id="container">

  <div id="header">
<h1><?php if ($this->_tpl_vars['action'] == 'add'): ?>添加<?php elseif ($this->_tpl_vars['action'] == 'edit'): ?>编辑<?php endif; ?>文章</h1>
  </div>

  <div id="mainContent">
  	<?php if ($this->_tpl_vars['error'] <> ''): ?><div id="error"><span style="color:red">Error:</span> <?php echo $this->_tpl_vars['error']; ?>
</div><?php endif; ?>
  	<?php if ($this->_tpl_vars['success'] <> ''): ?><div id="success"><span style="color:blue">Success:</span><?php echo $this->_tpl_vars['success']; ?>
</div><?php endif; ?>

	      <table width="600" height="400" border="0" align="center">  
    <form id="form1" name="form1" method="post" action="?module=cat&action=<?php if ($this->_tpl_vars['action'] == 'add'): ?>add<?php elseif ($this->_tpl_vars['action'] == 'edit'): ?>edit&nid=<?php echo $this->_tpl_vars['nid']; ?>
<?php endif; ?>">

        <tr height="40">
          <td>
          	<label>分类名称:<br /> <input type="text" name="catName" id="catName" class="inputBox" <?php if ($this->_tpl_vars['xName'] <> ''): ?>value="<?php echo $this->_tpl_vars['xName']; ?>
"<?php endif; ?> />
            </label>
          </td>
        </tr>

        <tr  height="200">
          <td>
            <label>分类注释:<br />
              <textarea name="catDesc" id="catDesc" cols="50" rows="15" ><?php if ($this->_tpl_vars['xDesc'] <> ''): ?><?php echo $this->_tpl_vars['xDesc']; ?>
<?php endif; ?></textarea>
            </label>
        
          </td>
        </tr>
        <tr>
          <td>
            <label>
              <input type="submit" name="catSubmit" id="catSubmit" value="提交分类" />
           	</label>
           	 		<label><input name="reset" type="reset" value="重置" /></label>
           	</td>
        </tr>
    </form>
    
      </table>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "news_footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>